package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbPlanAnnex entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_PLAN_ANNEX", schema = "dbo", catalog = "AGDB")
public class TbPlanAnnex implements java.io.Serializable {

	// Fields

	private String paId;
	private TbPlan tbPlan;
	private String paName;
	private String paPath;
	private String paDetail;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbPlanAnnex() {
	}

	/** minimal constructor */
	public TbPlanAnnex(String paId, String paName, String paPath) {
		this.paId = paId;
		this.paName = paName;
		this.paPath = paPath;
	}

	/** full constructor */
	public TbPlanAnnex(String paId, TbPlan tbPlan, String paName,
			String paPath, String paDetail, String a, String b, String c) {
		this.paId = paId;
		this.tbPlan = tbPlan;
		this.paName = paName;
		this.paPath = paPath;
		this.paDetail = paDetail;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@Id
	@Column(name = "PA_ID", unique = true, nullable = false, length = 40)
	public String getPaId() {
		return this.paId;
	}

	public void setPaId(String paId) {
		this.paId = paId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "P_ID")
	public TbPlan getTbPlan() {
		return this.tbPlan;
	}

	public void setTbPlan(TbPlan tbPlan) {
		this.tbPlan = tbPlan;
	}

	@Column(name = "PA_NAME", nullable = false, length = 40)
	public String getPaName() {
		return this.paName;
	}

	public void setPaName(String paName) {
		this.paName = paName;
	}

	@Column(name = "PA_PATH", nullable = false, length = 50)
	public String getPaPath() {
		return this.paPath;
	}

	public void setPaPath(String paPath) {
		this.paPath = paPath;
	}

	@Column(name = "PA_DETAIL", length = 1000)
	public String getPaDetail() {
		return this.paDetail;
	}

	public void setPaDetail(String paDetail) {
		this.paDetail = paDetail;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 1000)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}